@extends('layouts.app')
@section('title',Auth::user()->name.'的通知页')

@section('content')
    <div class="row">
        <div class="offset-md-1 col-md-10">
            <div class="card">
                <div class="card-body">
                    <h5>
                        <i class="fa fa-bell"></i>
                        我的通知
                    </h5>
                    <hr>
                    @if($notifications->count())
                        <ul class="list-group">
                            @foreach($notifications as $notification)
                               @include('notifications.types._'.Str::snake(class_basename($notification->type)))
                            @endforeach
                        </ul>
                        @include('shared._pages',['list'=>$notifications])
                    @else
                        <samll class="text-secondary d-flex justify-content-center p-4">
                            暂无回复 -_-!
                        </samll>
                    @endif
                </div>
            </div>
        </div>
    </div>
@stop
